﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartEP.Presenter;

namespace SmartDesktop
{
    public partial class Step10View : MedicalHistoryBaseView, IStep10View
    {
        public Step10View(PatientCarePresenter presenter)
            : base(presenter)
        {
            InitializeComponent();
            this.Name = "Registration Step 10";
            MainForm.BarCaption.Text = this.Name;

            this.step = 10;
            this.GroupStep = GroupStepType.MedicalHistory;
        }

        #region  Property
        public bool Diabetes
        {
            get
            {
                return rdYesDiabetes.Checked;
            }
            set
            {
                rdYesDiabetes.Checked = value;
            }
        }

        public bool HeartPain
        {
            get
            {
                return rdYesHeartPain.Checked;
            }
            set
            {
                rdYesHeartPain.Checked = value;
            }
        }

        public bool HighBloodPressure
        {
            get
            {
                return rdYesHighBlood.Checked;
            }
            set
            {
                rdYesHighBlood.Checked = value;
            }
        }

        public bool VascularDisease
        {
            get
            {
                return rdYesVascularDisease.Checked;
            }
            set
            {
                rdYesVascularDisease.Checked = value;
            }
        }

        public bool Diarrhea
        {
            get
            {
                return rdYesDiarrhea.Checked;
            }
            set
            {
                rdYesDiarrhea.Checked = value;
            }
        }

        public bool Constipation
        {
            get
            {
                return rdYesConstipation.Checked;
            }
            set
            {
                rdYesConstipation.Checked = value;
            }
        }

        public bool BonesJointsMuscles
        {
            get
            {
                return rdYesBones.Checked;
            }
            set
            {
                rdYesBones.Checked = value;
            }
        }

        public bool RheumatoidArthritis
        {
            get
            {
                return rdYesRheamatoid.Checked;
            }
            set
            {
                rdYesRheamatoid.Checked = value;
            }
        }

        public bool MusclePain
        {
            get
            {
                return rdYesMuscle.Checked;
            }
            set
            {
                rdYesMuscle.Checked = value;
            }
        }

        public bool JointPain
        {
            get
            {
                return rdYesJointPain.Checked;
            }
            set
            {
                rdYesJointPain.Checked = value;
            }
        }

        public bool Anemia
        {
            get
            {
                return rdYesAsthma.Checked;
            }
            set
            {
                rdYesAsthma.Checked = value;
            }
        }

        public bool BleedingProblems
        {
            get
            {
                return rdYesBleeding.Checked;
            }
            set
            {
                rdYesBleeding.Checked = value;
            }
        }

        public bool Endocrine
        {
            get
            {
                return rdYesEndocrine.Checked;
            }
            set
            {
                rdYesEndocrine.Checked = value;
            }
        }

        public bool Psychiatric
        {
            get
            {
                return rdYesPsychiatric.Checked;
            }
            set
            {
                rdYesPsychiatric.Checked = value;
            }
        }
        #endregion

        private void btnContinue_Click(object sender, EventArgs e)
        {
            this.presenter.DisplayNextStep(this.step);
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.presenter.BackToPreviousStep(this.step);
        }

    }
}
